package cn.edu.ujn.service;

import cn.edu.ujn.dao.Parkingrecord;
import cn.edu.ujn.dao.ParkingrecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IParkingrecordServiceImpl implements IParkingrecordService{
    @Autowired
    private ParkingrecordMapper parkingrecordMapper;

    @Override
    public int deleteByPrimaryKey(Integer recordid) {
        return parkingrecordMapper.deleteByPrimaryKey(recordid);
    }

    @Override
    public int insert(Parkingrecord row) {
        return parkingrecordMapper.insert(row);
    }

    @Override
    public int insertSelective(Parkingrecord row) {
        return parkingrecordMapper.insertSelective(row);
    }

    @Override
    public Parkingrecord selectByPrimaryKey(Integer recordid) {
        return parkingrecordMapper.selectByPrimaryKey(recordid);
    }

    @Override
    public int updateByPrimaryKeySelective(Parkingrecord row) {
        return parkingrecordMapper.updateByPrimaryKeySelective(row);
    }

    @Override
    public int updateByPrimaryKey(Parkingrecord row) {
        return parkingrecordMapper.updateByPrimaryKey(row);
    }

    @Override
    public List<Parkingrecord> selectAll(Parkingrecord row) {
        return parkingrecordMapper.selectAll(row);
    }
}
